Revert "gdkwindow: configure native windows in move_native_children()"
authorOlivier Fourdan <ofourdan@redhat.com>
Mon, 14 Nov 2016 11:23:56 +0000 (12:23 +0100)
committerOlivier Fourdan <ofourdan@redhat.com>
Mon, 14 Nov 2016 11:24:18 +0000 (12:24 +0100)
This reverts commit 9e2b1ad39e86b2352116f49214cf195cb3e0e970.

gdk/gdkwindow.c

index 4b4223051928ce35e0e75e1189c913c99444da4a..3c3b0a071c52615da112f6c70b307e93e9e1f2b5 100644 (file)
@@ -5386,24 +5386,6 @@ gdk_window_move_resize_toplevel (GdkWindow *window,
   _gdk_synthesize_crossing_events_for_geometry_change (window);
 }
 
-static void
-configure_native_child (GdkWindow *window)
-{
-  GdkDisplay *display;
-  GdkEvent *event;
-
-  event = gdk_event_new (GDK_CONFIGURE);
-
-  event->configure.window = g_object_ref (window);
-  event->configure.send_event = FALSE;
-  event->configure.x = window->x;
-  event->configure.y = window->y;
-  event->configure.width = window->width;
-  event->configure.height = window->height;
-
-  gdk_event_put (event);
-  gdk_event_free (event);
-}
 
 static void
 move_native_children (GdkWindow *private)
@@ -5424,10 +5406,7 @@ move_native_children (GdkWindow *private)
                                   child->width, child->height);
        }
       else
-        {
-          configure_native_child (child);
-          move_native_children (child);
-        }
+       move_native_children  (child);
     }
 }
 
@@ -5515,7 +5494,8 @@ gdk_window_move_resize_internal (GdkWindow *window,
                               window->x, window->y,
                               window->width, window->height);
     }
-  else
+  else if (old_abs_x != window->abs_x ||
+          old_abs_y != window->abs_y)
     move_native_children (window);
 
   if (expose)